package com.wlps.service;

import com.wlps.entity.Warehouse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wlps.result.ResultPageVo;
import com.wlps.result.ResultVo;
import com.wlps.vo.sendcenter.warehouse.WarehouseAddVo;
import com.wlps.vo.sendcenter.warehouse.WarehouseUpdateVo;

import java.util.List;

/**
 * <p>
 * 库房表（warehouse）
 * (1.当实际到货数量和订购数量不相符时，中心库房管理员修改实际到货数量)
 * 服务类
 * </p>
 *
 * @author ZWYZY
 * @since 2020-07-31
 */
public interface IWarehouseService extends IService<Warehouse> {
    /**
     * 分页显示库房
     *
     * @param pageNum
     * @param pageSize
     * @param name
     * @return
     */
    ResultPageVo<List<Warehouse>> getWarehouse(int pageNum, int pageSize, String name);

    /**
     * 增加库房
     *
     * @param warehouseAddVo
     * @return
     */
    ResultVo addWarehouse(WarehouseAddVo warehouseAddVo);

    /**
     * 删除库房
     *
     * @param id
     * @return
     */
    ResultVo deleteWarehouse(Long id);

    /**
     * 更改库房
     *
     * @param warehouseUpdateVo
     * @return
     */
    ResultVo updateWarehouse(WarehouseUpdateVo warehouseUpdateVo);


    /**
     * 根据id查询库房
     *
     * @param id
     * @return
     */
    ResultVo<Warehouse> getWarehouseById(Long id);
}
